package com.uobgroup.ews.uam.core.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;

import org.springframework.beans.factory.annotation.Configurable;

@Entity
@Configurable
public class DepartmentTransaction extends BaseEntity {

   @OneToOne
   private Reference department;

   @OneToOne
   private Reference transactionReference;

   @Id
   @GeneratedValue(strategy = GenerationType.AUTO)
   @Column(name = "id")
   private Long id;

   public Long getId() {
      return this.id;
   }

   public void setId(Long id) {
      this.id = id;
   }

   public Reference getDepartment() {
      return this.department;
   }

   public void setDepartment(Reference department) {
      this.department = department;
   }

   public Reference getTransactionReference() {
      return this.transactionReference;
   }

   public void setTransactionReference(Reference transactionReference) {
      this.transactionReference = transactionReference;
   }
}
